package com.zzb.springcloud.service.payment;

import com.zzb.springcloud.common.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description openfeign调用eureka注册服务CLOUD-PROVIDER-PAYMENT中的接口
 * @CreateTime 2021/7/5 0005 13:45
 * @Author 不浪小生
 */
@Component
@FeignClient("CLOUD-PROVIDER-PAYMENT")
public interface PaymentServiceFeign {

    @GetMapping("/payment/getPayment/{id}")
    CommonResult getPayment(@PathVariable("id") Long id);

    @GetMapping("/payment/paymentTimeout")
    String paymentTimeout();
}
